<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script src="com/js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="com/bootstrap3/dist/js/jquery.js"></script>
	<script type="text/javascript" src="com/bootstrap3/dist/js/bootstrap.js"></script>
	<link href="com/bootstrap3/dist/css/bootstrap.css" rel="stylesheet" />
	<link href="com/css/index.css" rel="stylesheet" type="text/css">
	<style type="text/css">
		.face{
			width: 250px;
			height: 90px;
			position: absolute;
			right: 10px;
			top: 5px;
		}
		.face img{
			height: 60px;
		}
		.face div{
			position: relative;
			height: 80px;
			border-radius: 5px;
			overflow-y: hidden;
			width: 62px;
			float: left;
			margin-left: 10px;
			text-align: right;
			font-weight: 700;
			font-family: '微软雅黑';
			color: #999;
		}
		.face .face_radio{
			position: absolute;
			left: 3px;
			bottom: 4px;
		}
		.form-horizontal{
			position: relative;
		}
	</style>
	<title>留言本</title>
</head>
<body>
	<?php
		$cz=$_GET['key'];

		?>
		
	<div id="main">
		<div class='form'>
			
			<form class="form-horizontal" action="index.php?a=xiugai" method="post">
				<div class="control-group">
					<label class="control-label" for="inputEmail">昵称:</label>
					<div class="controls">
						<input type="text" name="username" placeholder="请输入" value="<?php echo $this->db[$cz]['name']; ?>" />
				</div>
				<div class="control-group">
					<!--判断性别-->
					<?php 
						    
						   if($this->db[$cz]['sex']=='男'){
						   	echo <<<b
   		
	   			<input type="radio" name="sex" id="" value="男"checked="checked" >男										
					<input type="radio" name="sex" id="" value="女">女</div>
					   		
b;
}else{
                   echo <<<d
	   			<input type="radio" name="sex" id="" value="男">男										
					<input type="radio" name="sex" id="" value="女" checked="checked" >女						   			
	   		
d;
}

?>
					<!--判断性别结束-->
					</div>
					<!--<input type="radio" name="sex" id="" value="男"checked="checked" >男										
					<input type="radio" name="sex" id="" value="女">女</div>-->
				<div class="control-group">
					<label class="control-label" for="inputPassword">留言内容：</label>
					<div  class="controls">
						<textarea  name="content" placeholder=""><?php echo $this->db[$cz]['say']; ?></textarea>
					</div>
				</div>
				<div class="face">
										<?php 
						
						   if($this->db[$cz]['tupian']=='com/images/1.jpg'){
						   	echo <<<b
   		                   <div>
						<img src="com/images/1.jpg" alt="">
						<input type="radio" name="face" class="face_radio" checked="checked" value="com/images/1.jpg">
						头像1
					</div>
					<div>
						<img src="com/images/2.jpg" alt="">
						<input type="radio" name="face" class="face_radio" value="com/images/2.jpg">
						头像2
					</div>
					<div>
						<img src="com/images/3.jpg" alt="">
						<input type="radio" name="face" class="face_radio" value="com/images/3.jpg">
						头像3
					</div>	   								   		
b;
}else if($this->db[$cz]['tupian']=='com/images/2.jpg'){
                   echo <<<d
						   		<div>
						<img src="com/images/1.jpg" alt="">
						<input type="radio" name="face" class="face_radio"  value="com/images/1.jpg">
						头像1
					</div>
					<div>
						<img src="com/images/2.jpg" alt="">
						<input type="radio" name="face" class="face_radio" checked="checked" value="com/images/2.jpg">
						头像2
					</div>
					<div>
						<img src="com/images/3.jpg" alt="">
						<input type="radio" name="face" class="face_radio" value="com/images/3.jpg">
						头像3
					</div>					   		
d;
}else{
	  echo <<<l
	                   <div>
						<img src="com/images/1.jpg" alt="">
						<input type="radio" name="face" class="face_radio"  value="com/images/1.jpg">
						头像1
					</div>
					<div>
						<img src="com/images/2.jpg" alt="">
						<input type="radio" name="face" class="face_radio" value="com/images/2.jpg">
						头像2
					</div>
					<div>
						<img src="com/images/3.jpg" alt="">
						<input type="radio" name="face" class="face_radio" checked="checked" value="com/images/3.jpg">
						头像3
					</div>		
l;
}

?>

				</div>
				<div class="control-group">
					<div class="controls">
						<input type="hidden" name="hidden" id="" value="<?php echo $cz; ?>" />
						<button type="submit" class="btn btn-primary">修改留言</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>